<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="uct" uri="/WEB-INF/uct.tld" %>
<%
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort();
%>
<!doctype html>
<html class="no-js">
<head>
	<title>用户中心后台管理系统</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="description" content="北京--">
	 <%@ include file="/common/meta.jsp" %>
     <%@ include file="/common/import-html5.jsp" %>
	<meta name="author" content="www.dwusoft.com">
	<meta name="copyright" content="www.dwusoft.com,版权所有"/>

	<script type="text/javascript">
	var aboutUrl = "${ctx}/common/about.html";
		$(function(){
			$('#iframepage').attr("src",aboutUrl);

			$("#collapse-nav2").collapse('close');
			$("#collapse-nav3").collapse('close');
			$("#collapse-nav4").collapse('close');
			
			//license到期提醒
			 var mst ="${licenseTodata }";
			if(mst=="" || mst =="null"){
				return;
			}
			mst = "您的license还有 <span class='am-badge am-badge-warning'>"+mst+"</span>天到期";
			$("#my-license-content").html(mst);
			$("#my-license").modal('toggle');

		});

    /**
	 * 密码修改
	 */
	function updatePwd(){
		$("#div-title").html("修改密码");
		$('#updatePwdIframe').attr("src","${ctx}/uct/user/update-pwd.action");
		$("#my-userInfo").modal('toggle');
	};
	
	/**
	 * 退出
	 */
	function logout(){
		var msg = '您确定工作已经保存，并退出该系统?';
		$("#modal-content").html(msg);
		$('#my-confirm').modal({
		     relatedTarget: this,
		     onConfirm: function(options) {
		        location.href = '${ctx}/logout?go=<%=basePath %>${ctx}';
		     },
		     onCancel: function() {
		     }
		});
	};
	
	/**
	 * 页面跳转
	 */
   	function addurl(url){
		 if(url=="main"){
			 $('#iframepage').attr("src",aboutUrl);
		 }else{
			 var gotopage ="${ctx}/"+url+"list.action";
			$('#iframepage').attr("src",gotopage);
		 }
	};
	</script>
</head>

<body>


<header class="am-topbar admin-header">
  <div class="am-topbar-brand">
    <img class="am-radius" alt="" height="40" src="${ctx }/images/new/logo.png">
  </div>

  <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#topbar-collapse'}"><span class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span></button>

  <div class="am-collapse am-topbar-collapse" id="topbar-collapse">

    <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list">
      <li><a href="javascript:;">欢迎您：${loginUser.userCname}</a></li>
      <li class="am-dropdown" data-am-dropdown>
        <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">
          <span class="am-icon-ticket"></span> 设置 <span class="am-icon-caret-down"></span>
        </a>
        <ul class="am-dropdown-content">
          <li><a href="javascript:void(0)" onclick="updatePwd()"><span class="am-icon-cog"></span> 修改密码</a></li>
          <li><a href="javascript:void(0)" onclick="logout()"><span class="am-icon-power-off"></span> 退出</a></li>
        </ul>
      </li>
      <li class="am-hide-sm-only"><a href="javascript:;" id="admin-fullscreen"><span class="am-icon-arrows-alt"></span> <span class="admin-fullText">开启全屏</span></a></li>
    </ul>
  </div>
</header>

<div class="am-cf admin-main">
  <!-- sidebar start -->
  <div class="admin-sidebar am-offcanvas" id="admin-offcanvas">
    <div class="am-offcanvas-bar admin-offcanvas-bar">
      <ul class="am-list admin-sidebar-list">
      <uct:uctTag actFullEname="/uct/org_user_manager">
        <li class="admin-parent">
          <a class="am-cf" data-am-collapse="{target: '#collapse-nav'}"><span class="am-icon-file"></span> 机构与用户管理 <span class="am-icon-angle-right am-fr am-margin-right"></span></a>
          <ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-nav">
            <uct:uctTag actFullEname="/uct/org_user_manager/org_manager">
            <li><a href="javascript:void(0)" onclick="addurl('uct/org/')" class="am-cf"><span class="am-icon-recycle"></span> 机构管理</a></li>
            </uct:uctTag>
            <uct:uctTag actFullEname="/uct/org_user_manager/user_manager">
            <li><a href="javascript:void(0)" onclick="addurl('uct/user/')"><span class="am-icon-user-md"></span> 用户管理</a></li>
            </uct:uctTag>
            <uct:uctTag actFullEname="/uct/org_user_manager/user_hs_manager">
            <li><a href="javascript:void(0)" onclick="addurl('uct/user/gc_')"><span class="am-icon-sign-out"></span> 用户回收管理</a></li>
         	</uct:uctTag>
          </ul>
        </li>
        </uct:uctTag>
        <uct:uctTag actFullEname="/uct/act_manager">
        <li class="admin-parent">
          <a class="am-cf" data-am-collapse="{target: '#collapse-nav2'}"><span class="am-icon-file"></span> 权限管理<span class="am-icon-angle-right am-fr am-margin-right"></span></a>
          <ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-nav2">
            <uct:uctTag actFullEname="/uct/act_manager/role_manager">
            <li><a href="javascript:void(0)" onclick="addurl('uct/role/')" class="am-cf"><span class="am-icon-users"></span> 角色管理</a></li>
            </uct:uctTag>
            <uct:uctTag actFullEname="/uct/act_manager/sys_manager">
            <li><a href="javascript:void(0)" onclick="addurl('uct/sys/')"><span class="am-icon-cog"></span> 系统注册</a></li>
            </uct:uctTag>
            <uct:uctTag actFullEname="/uct/act_manager/sys_act_manager">
            <li><a href="javascript:void(0)" onclick="addurl('uct/act/')"><span class="am-icon-check"></span> 系统权限管理</a></li>
            </uct:uctTag>
            <uct:uctTag actFullEname="/uct/act_manager/lock_manager">
            <li><a href="javascript:void(0)" onclick="addurl('uct/sys/lock-sys-')"><span class="am-icon-lock"></span> 系统访问控制管理</a></li>
            </uct:uctTag>
          </ul>
        </li>
        </uct:uctTag>
        <uct:uctTag actFullEname="/uct/system_manager">
         <li class="admin-parent">
          <a class="am-cf" data-am-collapse="{target: '#collapse-nav3'}"><span class="am-icon-file"></span> 系统管理 <span class="am-icon-angle-right am-fr am-margin-right"></span></a>
          <ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-nav3">
            <uct:uctTag actFullEname="/uct/system_manager/dict_manager">
            <li><a href="javascript:void(0)" onclick="addurl('dict/cate/')" class="am-cf"><span class="am-icon-book"></span> 数据字典管理</a></li>
            </uct:uctTag>
            <uct:uctTag actFullEname="/uct/system_manager/interface-manager">
            <li><a href="javascript:void(0)" onclick="addurl('protocol/')"><span class="am-icon-info"></span> 接口注册</a></li>
            </uct:uctTag>
            <uct:uctTag actFullEname="/uct/system_manager/timeTask-manager">
            <li><a href="javascript:void(0)" onclick="addurl('task/')"><span class="am-icon-tasks"></span> 定时任务管理</a></li>
			</uct:uctTag>         
          </ul>
        </li>
        </uct:uctTag>
        <uct:uctTag actFullEname="/uct/audit_log_manager">
         <li class="admin-parent">
          <a class="am-cf" data-am-collapse="{target: '#collapse-nav4'}"><span class="am-icon-file"></span> 审计日志管理 <span class="am-icon-angle-right am-fr am-margin-right"></span></a>
          <ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-nav4">
            <uct:uctTag actFullEname="/uct/audit_log_manager/auidt_work">
            <li><a href="javascript:void(0)" onclick="addurl('audit/model/')" class="am-cf"><span class="am-icon-columns"></span> 审计应用设置</a></li>
            </uct:uctTag>
            <li><a href="javascript:void(0)" onclick="addurl('audit/logger/')"><span class="am-icon-calendar"></span> 审计日志查询</a></li>
          </ul>
        </li>
        </uct:uctTag>
      </ul>

      <div class="am-panel am-panel-default ">
      </div>
    </div>
  </div>
  <!-- sidebar end -->

  <!-- content start -->
  <div class="admin-content">
    <iframe frameborder="0" id="iframepage" width="100%" onload="this.height=0;var heights = $(this).contents().height() + 50; this.height=(heights>530?heights:530);" scrolling="auto" ></iframe>
  </div>
  <!-- content end -->
</div>

<!-- 以下为弹出层定义 -->
<div class="am-modal am-modal-confirm" tabindex="-1" id="my-confirm">
  <div class="am-modal-dialog">
    <div class="am-modal-hd" id="titleHeader"></div>
    <div class="am-modal-bd" id="modal-content"> </div>
    <div class="am-modal-footer">
      <span class="am-modal-btn" data-am-modal-cancel>取消</span>
      <span class="am-modal-btn" data-am-modal-confirm>确定</span>
    </div>
  </div>
</div>
<div class="am-modal am-modal-no-btn" tabindex="-1"  tabindex="-1" id="my-license">
 <div class="am-modal-dialog">
  <div class="am-modal-hd">license到期提醒</div>
  <div class="am-modal-hd"><a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a></div>
  <div class="am-modal-bd" id="my-license-content"></div>
  </div>
</div>
<div class="am-modal am-modal-confirm" tabindex="-1"  tabindex="-1" id="my-userInfo">
  <div class="am-modal-dialog">
    <div class="am-modal-hd" id="div-title"></div>
    <div class="am-modal-hd"><a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a></div>
    <div class="am-modal-bd" id="my-userInfo-content">
        <iframe frameborder="0" id="updatePwdIframe" width="400" onload="this.height=0;var heights = $(this).contents().height() + 10; this.height=(heights>200?heights:250);" scrolling="no" frameborder="0" ></iframe>
    </div>
  </div>
</div>

<div data-am-widget="gotop" class="am-gotop am-gotop-fixed">
  <a href="#top" title="回到顶部">
     <span class="am-gotop-title">回到顶部</span>
    <i class="am-gotop-icon am-icon-chevron-up"></i>
  </a>
</div>
<footer></footer>
</body>
</html>